package com.pg_chat.constant;

import lombok.Getter;

@Getter
public enum ResponseCode {
    /**
     * 操作成功
     */
    SUCCESS(200, "操作成功"),
    VALIDATION_ERROR(301, "验证失败"),
    FAIL(305, "操作失败"),

    /**
     * 未知异常
     */
    SERVER_ERROR(500, "服务器出错啦");
    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 内容
     */
    private final String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
